function BaiduCredit(selector){
	this.ele = $(selector).get(0);
	this.OpenAction();
	this.closeAction();
}
BaiduCredit.prototype.OpenAction = function(){
	var oSelf = this;
	$(oSelf.ele).on({
		click:function(){
			$(oSelf.ele).find('.synopsis').show();
		}
	})
}
BaiduCredit.prototype.closeAction = function(){
	var oSelf = this;
	$(oSelf.ele).find('.closeBox').on({
		click:function(){
			$(this).parents('.synopsis').stop().slideUp({
				right:-220
			})
		}
	})
}

function BodyRightNavBox(selector){
	this.ele = $(selector).get(0);
	this.goTop();
}
BodyRightNavBox.prototype.goTop= function(){
	$(this.ele).find('.hideboxinner').on({
		click:function(){
			$('body').stop().animate({
				scrollTop:0
			},2000)
		}
	})
}
